import Vue from 'vue'
import Router from 'vue-router'
import Main from './views/Main.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'main',
      component: Main,
      children: [
        { path: '', component: () => import('./views/Home.vue') },
        { path: 'list', component: () => import('./views/List.vue') },
      ]
    },
  ]
})
